﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;


/** 
 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
 * Description: 
 * Author: Heller (HellerSong@outlook.com)
 * CreationTime: 4/11/2015 10:42:03 AM
 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** 
 **/
namespace DevGrammar.TestMonitor
{
	public class FileMonitor
	{
		private Timer timer;
		//private Dictionary<FileInfo, DateTime> allFiles();
		//private ICollection<FileListener> allListeners();

		public FileMonitor(int pollingInterval)
		{
			timer = new Timer(new TimerCallback(TimerCall), this, 5000, 0);

		}

		private void TimerCall(Object ojb)
		{
			timer.Dispose();
			
		}
		private void FileMonitorNotifier(Object sender)
		{
			Console.WriteLine("Notifier is called...");
		}
	}
}
